#include "TrackCamera.hpp"

TrackCamera::TrackCamera():
    Camera(Vec3f(0.f, 0.f, 0.f), Vec3f(0.f, 0.f, 0.f), Vec3f(0.f, 1.f, 0.f)),
    _hold(false),
    _motionSensivity(1),
    _angleX(0),
    _angleY(0)
{
}

TrackCamera::TrackCamera(Vec3f const& position, Vec3f const& lookedPoint, Vec3f const& orientation):
    Camera(position, lookedPoint, orientation),
    _hold(false),
    _motionSensivity(1),
    _angleX(0),
    _angleY(0)
{
}

bool    TrackCamera::isHold() const
{
    return _hold;
}

void    TrackCamera::setHold(const bool value)
{
    _hold = value;
}

float   TrackCamera::getMotionSensivity() const
{
    return _motionSensivity;
}

void    TrackCamera::setMotionSensivity(float sensivity)
{
    _motionSensivity = sensivity;
}

float   TrackCamera::getAngleX() const
{
    return _angleX;
}

void    TrackCamera::setAngleX(const float angleX)
{
    _angleX = angleX;
}

float   TrackCamera::getAngleY() const
{
    return _angleY;
}

void    TrackCamera::getAngleY(const float angleY)
{
    _angleY = angleY;
}

void    TrackCamera::setAngle(const float angleX, const float angleY)
{
    _angleX = angleX;
    _angleY = angleY;
}
